<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;

$time = time();
$user = Yii::$app->user->identity;
Yii::$app->name="挪车";
if( Yii::$app->controller->action->id === 'login' ||
    Yii::$app->controller->action->id === 'register' ){
    echo $this->render(
        'main-single',
        ['content' => $content]
    );
}else{
    AppAsset::register($this);
    frontend\assets\AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
    <head>
        <meta name="format-detection" content="telephone=no">
        <meta name="apple-mobile-web-app-status-bar-style" content="white">
        <meta name="apple-mobile-web-app-capable" content="no">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
        <title>news</title>

        <link rel="stylesheet" type="text/css" href="/css/style.css" />
    </head>
<body>
<?php $this->beginBody() ?>

<?= $content ?>
<!--<script src="/js/lvdong/news.js"></script>-->
<footer class="footer">
    <ul class="nav">
        <li><a href="#" class="index">首页</a></li>
        <li class="cur"><a href="#" class="news">快讯</a></li>
        <li><a href="#" class="about">关于</a></li>
    </ul>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>

<?php } ?>
